package com.csdj.controller;
import com.csdj.entity.Cityarea;
import com.csdj.entity.Driverschool;
import com.csdj.service.CityareaService;
import com.csdj.service.DriverschoolService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class CheController {
    @Resource
    private DriverschoolService driverschoolService;
    @Resource
    private CityareaService cityareaService;

    @GetMapping("/che")
    public String list(Model model){
        List<Driverschool> driveSchoollist = driverschoolService.selectByExample();
        /*List<Cityarea> searchList = cityareaService.selectByPrimaryKey();*/
        model.addAttribute("driveSchoollist",driveSchoollist);
        /*model.addAttribute("searchList",searchList);*/
        return "/Che";
    }

}
